﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class Staff
    {
        public int id { get; set; }
        public string name { get; set; }
        public string department { get; set; }
        public void S()
        {
            Console.WriteLine("工号：{0}",this.id);
            Console.WriteLine("姓名：{0}",this.name);
            Console.WriteLine("部门：{0}",this.department);
        }

        //无参
        public Staff()
        { 

        }

        //有参
        public Staff(int id,string name,string department)
        {
            this.id = id;
            this.name = name;
            this.department = department;
        }
    }
}
